<?php
require_once '../lib/standard.php';
require_once '../pektis/pektis.php';
set_globals();
set_pektis();
Page::head();
Page::stylesheet("lib/forma");
Page::stylesheet("account/account");
Page::javascript("account/account");
Page::body();
Page::toolbar();
Page::fyi_top();
?>
<div id="main" class="main">
<div class="forma">
<form id="signupForm" onsubmit="return account.<?php
	print $globals->is_pektis() ? "update" : "add"; ?>Pektis(this);">
<div class="formaData">
	<div class="formaHeader">
		Create account
	</div>
	<table class="tbldbg">
	<tr>
	<td class="tbldbg">
		<div class="formaPrompt">
			Login
		</div>
	</td>
	<td class="tbldbg">
		<input name="login" class="formaField" type="text" size="16" maxlength="32"<?php
			if ($globals->is_pektis()) {
				print 'value="' . $globals->pektis->login .
					'" disabled="disabled"';
			}
			?> onkeydown="clearError(this);" onchange="account.checkLoginValue(this);" />
	</td>
	</tr>
	<tr>
	<td class="tbldbg">
		<div class="formaPrompt">
			Full name
		</div>
	</td>
	<td class="tbldbg">
		<input name="onoma" class="formaField" type="text" size="48" maxlength="128" value="<?php
			if ($globals->is_pektis()) {
				print $globals->pektis->onoma;
			}
			?>" />
	</td>
	</tr>
	</tr>
	<tr>
	<td class="tbldbg">
		<div class="formaPrompt">
			Email
		</div>
	</td>
	<td class="tbldbg">
		<input name="email" class="formaField" type="text" size="48" maxlength="128" value="<?php
			if ($globals->is_pektis()) {
				print $globals->pektis->email;
			}
			?>" onkeydown="clearError(this);" onchange="account.checkEmailValue(this);" />
	</td>
	</tr>
	<?php
	if ($globals->is_pektis()) {
		?>
		<tr>
		<td class="tbldbg">
			<div class="formaPrompt">
				Current password
			</div>
		</td>
		<td class="tbldbg">
			<input name="kodikos1" class="formaField" type="password" size="16" maxlength="16" />
		</td>
		</tr>
		<?php
	}
	?>
	<tr>
	<td class="tbldbg">
		<div class="formaPrompt">
			<?php print $globals->is_pektis() ? "New password" : "Password"; ?>
		</div>
	</td>
	<td class="tbldbg">
		<input name="kodikos1" class="formaField" type="password" size="16" maxlength="16" />
	</td>
	</tr>
	<tr>
	<td class="tbldbg">
		<div class="formaPrompt">
			Repeat password
		</div>
	</td>
	<td class="tbldbg">
		<input name="kodikos2" class="formaField" type="password" size="16" maxlength="16" />
	</td>
	</tr>
	</table>
</div>
<div class="formaPanel">
	<button class="button formaButton" type="submit">
		<?php print $globals->is_pektis() ? "Update" : "Create"; ?> account
	</button>
	<button class="button formaButton" type="reset">
		Reset
	</button>
	<button class="button formaButton" type="buttom" onclick="<?php
		if ($globals->perastike('modify')) {
			?>alert('modiy'); window.self.close();<?php
		}
		else {
			?>location.href='<?php print $globals->server; ?>';<?php
		}
		?>return false;">
		Cancel
	</button>
</div>
</form>
</div>
</div>
<?php
Page::fyi_bottom();
Page::close();
$globals->klise_fige();
